export const upload = (data) => uni.$u.http.upload('/user/upload', {params: {type: data.type}, filePath: data.filePath, name: 'file', formaData: data.formdata})
/** 登录 */
export const login = (data) => uni.$u.http.post('/login', data)
/** 注册 */
export const register = (data) => uni.$u.http.post('/register', data)
/** 发送短信 */
export const sendSms = (data) => uni.$u.http.post('/common/captcha/sms', data)
/** 获取首页藏品 */
export const getHomeCollection = (data) => uni.$u.http.get('/home/collection', {params: data})
/** 获取首页艺术家 */
export const getHomeArtist  = (data) => uni.$u.http.get('/home/artist', {params: data})
/** 获取广告列表 */
export const getAdList = (data) => uni.$u.http.get('/ad/list', {params: data})
/** 获取公告列表 */
export const getNoticeList = (data) => uni.$u.http.get('/notice/list', {params: data})
/** 获取公告详情 */
export const getNoticeDetail = (data) => uni.$u.http.get(`/notice/${data.id}`)
/** 获取市场订单 */
export const getMarketList = (data) => uni.$u.http.post('/market/list', data)
/** 获取市场详情 */
export const getMarketDetail = (data) => uni.$u.http.get(`/market/${data.id}`)
/** 获取分类列表 */
export const getGategoryList = (data) => uni.$u.http.get(`/gategory/list`)
/** 获取关注列表 */
export const getFollowList = (data) => uni.$u.http.get('/follow/list', {params: data})
/** 获取关注详情 */
export const getFollow = (data) => uni.$u.http.get('/follow/query', {params: data})
/** 关注艺术家 */
export const follow = (data) => uni.$u.http.get(`/follow/${data.id}`)
/** 取消关注艺术家 */
export const cancelFollow = (data) => uni.$u.http.get(`/follow/cancel/${data.id}`)
/** 喜欢作品 */
export const like = (data) => uni.$u.http.get(`/user/like/${data.id}`)
/** 取消喜欢 */
export const cancelLike = (data) => uni.$u.http.get(`/user/like/cancel/${data.id}`)
/** 获取用户信息 */
export const getUserInfo = (data) => uni.$u.http.get(`/user/info`)
/** 修改用户基本信息 */
export const updateUserInfo = (data) => uni.$u.http.post('/user/update', data)
/** 修改用户基本信息 */
export const updateUserAvatar = (data) => uni.$u.http.post('/user/update/avatar', data)
/** 用户实名认证 */
export const applyUserAuth = (data) => uni.$u.http.post('/user/auth', data)
/** 更新用户实名认证 */
export const updateUserAuth = (data) => uni.$u.http.post('/user/update/auth', data)
/** 获取用户认证信息 */
export const getUserAuthInfo = (data) => uni.$u.http.get(`/user/auth/info`)
/** 更新用户安全密码 */
export const updateUserSafePwd = (data) => uni.$u.http.post('/user/update/safePwd', data)
/** 更新用户邮箱 */
export const updateUserEmail = (data) => uni.$u.http.post('/user/bind/email', data)
/** 修改主页可见性 */
export const updateHomeStatus = (data) => uni.$u.http.post('/user/update/homeStatus', data)
/** 修改藏品页可见性 */
export const updateCollectionStatus = (data) => uni.$u.http.post('/user/update/collectionStatus', data)
/** 获取订单列表 */
export const getOrderList = (data) => uni.$u.http.get('/order/list', {params: data})
/** 创建订单 */
export const createOrder = (data) => uni.$u.http.post('/order/create', data)
/** 取消订单 */
export const cancelOrder = (data) => uni.$u.http.get(`/order/cancel/${data.id}`)
/** 获取自己的藏品列表 */
export const getOwnCollectionList = (data) => uni.$u.http.get(`/user/collection/own`, {params: data})
/** 更新藏品可见性 */
export const updateCommodityVisible = (data) => uni.$u.http.post('/commodity/update/visible', data)
/** 获取自己的藏品详情 */
export const getOwnCollectionDetail = (data) => uni.$u.http.get(`/user/collection/${data.id}`)
/** 获取用户银行卡列表 */
export const queryBankList = (data) => uni.$u.http.get('/bank/list', {params:data})
/** 获取用户发布的作品 */
export const queryMarketList = (data) => uni.$u.http.get('/market/own', {params:data})
/** 获取作者画廊 */
export const queryGalleryList = (data) => uni.$u.http.get('/gallery/list', {params:data})
// 获取作者藏品馆
export const queryCollectionList = (data) => uni.$u.http.get('/user/collection/list', {params:data})
// 获取作者信息
export const queryArtistInfor  = (data) => uni.$u.http.get(`/user/${data.id}`)
// 获取作者中心是否关注
export const queryFollowStatus = (data) => uni.$u.http.get(`/follow/query`,{data})
// 提现
export const submitWithdraw	   = (data) => uni.$u.http.post(`/user/withdraw`,data)
// 资金记录
export const queryFundList	   = (data) => uni.$u.http.get(`/account/flows/list`,{params:data})
// 提现记录
export const queryWithdrawList = (data) => uni.$u.http.get(`/user/withdraw/list`,{params:data})
// 我的关注
export const queryFollowList   = (data) => uni.$u.http.get(`/follow/list`,{params:data})
// 作者列表
export const queryArtistList   = (data) => uni.$u.http.get(`/artist/list`,{params:data})
// 用户账户
export const queryAccountList = (data) => uni.$u.http.get(`/account/list`,{params:data})
// 我的喜欢
export const queryLikeList = (data) => uni.$u.http.get(`/user/like/list`,{params:data})
// 寄售
export const createSellOrder = (data) => uni.$u.http.post(`/market/create`,data)
// app更新
export const versionApp = (data) => uni.$u.http.get(`/version/app`,{params:data})